@headerH: 60px;
@sidebarW: 200px;
html,
body {
    height: 100%;
}

body {
    overflow: hidden;
    background: #ffffff;
}

.wrap-main {
    height: 100%;
    padding-top: @headerH;
    overflow: auto;
}

.header-main {
    width: 100%;
    height: @headerH;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99;
    background: #45436e;
}

.sidebar-main {
    width: @sidebarW;
    min-height: 100%;
    padding-bottom: 56px;
    border-right: 10px solid #C5D0DE;
    position: relative;
    left: 0;
    background: #22223a;
}

.content-main {
    position: fixed;
    left: @sidebarW;
    top: @headerH;
    right: 0;
    bottom: 0;
    background: #ffffff;
}

.footer-main {
    width: @sidebarW;
    height: 56px;
    line-height: 56px;
    border-right: 10px solid #C5D0DE;
    padding: 0;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 49;
    text-align: center;
    background-color: #2d2d4b;
    color: #7271a2;
    font-size: 12px;
}

.fold-nav {
    box-sizing: border-box;
    display: block;
    width: 10px;
    height: 100px;
    line-height: 100px;
    position: fixed;
    top: 50%;
    left: @sidebarW - 10px;
    color: #ffffff;
    background-color: #e6ebf0;
    cursor: pointer;
    &:after {
        content: '\E603';
        font-family: layui-icon !important;
        margin-left: -2px;
        color: #484848;
        font-size: 14px;
    }
}

.sidebar-main,
.content-main,
.footer-main,
.fold-nav {
    transition: all 0.5s;
}

.short-side {
    .sidebar-main {
        left: 10px - @sidebarW;
    }
    .content-main {
        left: 10px;
    }
    .fold-nav {
        left: 0;
        &:after {
            content: "\E602";
        }
    }
    .footer-main {
        left: 10px - @sidebarW;
    }
}


/*主要框架样式结束*/

.tab-nav {
    width: 100%;
    height: 46px;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0;
    background: #ffffff;
    border-bottom: 2px solid #ebedf0;
}

.tab-nav-item {
    display: inline-block;
    height: 26px;
    line-height: 26px;
    margin-top: 9px;
    margin-left: 4px;
    margin-right: 4px;
    padding-left: 12px;
    padding-right: 5px;
    border-radius: 12px;
    background: transparent;
    font-size: 14px;
    font-weight: bold;
    color: #8493a8;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-transition: all 0.2s;
    .tab-close {
        display: inline-block;
        width: 18px;
        height: 18px;
        border-radius: 9px;
        line-height: 20px;
        margin-left: 5px;
        text-align: center;
        font-size: 14px;
        color: #c2c2c2;
        opacity: 0;
        transition: all 0.5s;
        &:after {
            content: "\1006";
        }
        &:hover {
            background-color: #FF5722;
            color: #fff;
        }
    }
    &:hover {
        background-color: #e8ecf4;
        color: #8493a8;
        .tab-close {
            opacity: 1;
            color: #fff;
        }
    }
    &:active,
    &.active {
        background-color: #45436e;
        color: #FFFFFF;
        .tab-close {
            opacity: 1;
            color: #fff;
        }
    }
}

.tab-nav-item:first-of-type {
    padding-right: 12px;
    margin-left: 12px;
    .tab-close {
        display: none !important;
    }
}

.tab-nav-item:last-of-type {
    margin-right: 12px;
}

.tab-content {
    height: ~'calc(100% - 46px)';
    >iframe {
        width: 100%;
        height: 100%;
    }
}

.header-logo {
    height: 100%;
    a {
        color: #FFFFFF;
    }
    span {
        display: inline-block;
        font-size: 16px;
        line-height: 16px;
        letter-spacing: 2px;
        margin-left: 10px;
        padding-left: 10px;
        border-left: 1px solid #fff;
        position: relative;
        top: 1px;
    }
}

.header-nav {
    height: 100%;
    color: #FFFFFF;
    .nav-item {
        position: relative;
        cursor: pointer;
    }
    .jg {
        display: inline-block;
        width: 1px;
        height: 18px;
        margin: 0 20px;
        background: #FFFFFF;
    }
    .calculator {
        width: 16px;
        height: 21px;
        background: url(../img/calculator.svg) center no-repeat;
    }
    .xl-n {
        height: 60px;
    }
    .nav-child {
        display: none;
        position: absolute;
        left: 50%;
        top: 60px;
        width: 184px;
        line-height: 36px;
        margin-left: -92px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
        background-color: #fff;
        z-index: 9;
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
        overflow: hidden;
        dd {
            padding: 0 20px;
            line-height: 40px;
            height: 40px;
            background: #45436e;
            color: #FFFFFF;
            cursor: pointer;
            &:hover {
                background: #5d5c8a;
            }
            i {
                margin-right: 14px;
            }
        }
        .me-log-out {
            background: #39385a;
            border-top: 1px dashed #5a5886;
        }
    }
    .exit {}
}

.sidebar-nav {
    .sidebar-item {
        display: block;
        height: 44px;
        line-height: 44px;
        padding-left: 20px;
        padding-right: 26px;
        color: #c8c8e9;
        background: #39375c;
        border-bottom: 1px solid #0f0f1c;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        position: relative;
        .iconfont {
            display: inline-block;
            width: 24px;
            font-size: 16px;
            margin-right: 0px;
            vertical-align: middle;
        }
        .text {
            vertical-align: middle;
        }
        .more {
            position: absolute;
            top: 0;
            right: 10px;
            height: 44px;
            line-height: 44px;
            font-family: layui-icon;
            &:after {
                content: '\E603';
            }
        }
    }
    .sidebar-item {
        background: #39375c;
        padding-left: 20px;
    }
    .sidebar-child .sidebar-item {
        background: #282640;
        padding-left: 20px;
    }
    .sidebar-child .sidebar-child .sidebar-item {
        background: #1c1b2d;
        padding-left: 30px;
    }
    .sidebar-child {
        display: none;
    }
    .sidebar-active {
        background-color: #515175 !important;
        color: #ffffff !important;
    }
    .sidebar-itemed {
        .more {
            position: absolute;
            top: 0;
            right: 10px;
            height: 44px;
            line-height: 44px;
            font-family: layui-icon;
            &:after {
                content: '\E61A';
            }
        }
        &+.sidebar-child {
            display: block;
        }
    }
}